
import java.util.Scanner;

/**
 *
 * @author Fariz
 */
public class soal3 {

    public static void main(String[] args) {
        int a;
        Scanner input = new Scanner(System.in);

        System.out.print("Masukkan angka : ");
        a = input.nextInt();
        System.out.println("=======================================");

        for (int i = a; i > 0; i--) {
            for (int j = a; j > i; j--) {
                System.out.print(" ");
            }
            for (int k = i; k > 0; k--) {
                System.out.print(k);
            }
            for (int l = 2; l <= i; l++) {
                System.out.print(l);
            }
            System.out.println("");
        }
    }
}